home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / p / portfoli / pglib / pglib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-30  |  1.2 KB  |  37 lines

  1. /*****************************************************************
  2.     Header file for PGLIB.LIB - The Atari Porfolio Graphics Library
  3.     (c)Copyright 1991 Software Vineyard  All Rights Reserved.
  4.     See PGCLIB.DOC for licensing terms
  5. ******************************************************************/
  6.  
  7. /*    Color Definitions for PG_Plot and PG_GetPixel */
  8. #define    WHITE        0
  9. #define    BLACK        1
  10.  
  11. /* Return codes from PG_Show, PG_Read, and PG_Save */
  12. #define    OK            0      /* everything was OK */
  13. #define    BADOPEN  1        /* error opening file */
  14. #define    NOTPGC    2        /* not a PGC file */
  15. #define    BADWRITE    3        /* error writing file - PG_Save */
  16.  
  17. /*    Dummy value to pass to PG_Read and PG_Move to use screen as source
  18.     or destination    */
  19. #define    SCREEN    0L
  20.  
  21. /*    Function Prototypes */
  22. int    PG_Init(void);
  23. void    PG_GoGraphic(void);
  24. void    PG_GoText(void);
  25. void    PG_Refresh(void);
  26. void    PG_ClearScreen(void);
  27. void    PG_QPlot(int x, int y, int color);
  28. void    PG_Plot(int x, int y, int color);
  29. int    PG_GetPixel(int x, int y);
  30. int     PG_Show(char *filename);
  31. int     PG_Load(char *filename, char far *buffer);
  32. void    PG_Move(char far *tobuffer, char far *frombuffer);
  33. int    PG_Save(char *filename, char far *buffer);
  34.  
  35.  
  36.  
  37. ə